package com.ebook.action;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.lang.annotation.Annotation;

/**
 * Created by IntelliJ IDEA.
 * User: liuys
 * Date: 11-7-25
 * Time: 下午9:56
 * To change this template use File | Settings | File Templates.
 */
public class HemsController implements Controller {

    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        ModelAndView mav = new ModelAndView("hello.jsp");
        mav.addObject("message","hello,world");
        return mav;
    }
}
